home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "InpBoxModule1"
- Option Explicit
- Public Inp1, DefInp As String
-
- Public Sub InpBox(InpObj As Object, InpPrompt As String, Inp As String, InpTitle As String, InpFont As String, InpX As Integer, InpY As Integer)
-
- With InpObj
- InpObj.Cls
- Inp1 = ""
- .Text1.BackColor = RGB(210, 255, 255)
- .Text1.ForeColor = RGB(0, 0, 128)
- .Text1.FontBold = False
- .Label2.BackColor = RGB(0, 96, 0)
- .Label2.Left = 30
- .Label2.Width = InpObj.Width - 75
- .Label2.Caption = InpTitle
- .Label1.Font = InpFont
- .Label2.Font = InpFont
- .Command2.Font = InpFont
- .Command3.Font = InpFont
- .Command1.Left = InpObj.Width - 360
- .Label1.Caption = InpPrompt
- If .Label1.Height <= 720 Then
- InpObj.Move InpX, InpY, 5010, 1680
- .Image1.Top = 405
- Else
- InpObj.Move InpX, InpY, 5010, .Label1.Height + 900
- .Image1.Top = .Label1.Top + (.Label1.Height / 2) - 480
- End If
- .Text1.Top = InpObj.Height - 450
- .Command3.Top = InpObj.Height - 345
- .Command2.Top = InpObj.Height - 645
- InpObj.Line (0, 0)-(InpObj.Width - 15, InpObj.Height - 15), RGB(128, 128, 128), B
- InpObj.Line (15, 15)-(InpObj.Width - 15, 15), RGB(255, 255, 255)
- InpObj.Line (15, 15)-(15, InpObj.Height - 15), RGB(255, 255, 255)
- InpObj.Line (15, InpObj.Height - 30)-(InpObj.Width - 30, InpObj.Height - 30), RGB(128, 128, 128)
- InpObj.Line (InpObj.Width - 30, 30)-(InpObj.Width - 30, InpObj.Height - 30), RGB(128, 128, 128)
- .Text1.Text = Inp
- .Text1.SelStart = 0
- .Text1.SelLength = Len(Inp)
- InpForm1.Show 1
- End With
- End Sub
-